package com.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.stereotype.Controller;

@Controller
@SpringBootApplication
@MapperScan("com.springboot.project.common.dao")
//@MapperScan(basePackages = {"com.springboot.project.*.dao"})
public class ZdogApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(ZdogApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(
			SpringApplicationBuilder application) {
		return application.sources(ZdogApplication.class);
	}
}
